import jpcap.PacketReceiver;
import jpcap.packet.Packet;

class PacketPrinter implements PacketReceiver {
  //this method is called every time Jpcap captures a packet
  public void receivePacket(Packet packet) {
    //just print out a captured packet
	Pcap.listPackets.add(packet);
   // System.out.println(packet);
  
  }
}